﻿using DesignPattern.ViewModels.Pages;
using Wpf.Ui.Abstractions.Controls;

namespace DesignPattern.Views.Pages
{
    public partial class DesignPatternPage : INavigableView<DesignPatternViewModel>
    {
        public DesignPatternViewModel ViewModel { get; }

        public DesignPatternPage(DesignPatternViewModel viewModel)
        {
            ViewModel = viewModel;
            // 在构造函数中设置DataContext
            DataContext = viewModel;
            InitializeComponent();
        }
    }
}